#{extends 'main.html' /}
#{set title:'Gönderilenler' /}


<div class="message_menu">
<a href="/inbox" class="message_menu_a">Gelen Kutusu</a> 
<a href="/outbox" class="message_menu_a_active">Gönderilenler</a> 
</div>

<div class="message_top">

<div class="message_sender">
Kime
</div>

<div class="message_subject">
Konu
</div>

<div class="message_date">
Tarih
</div>

<div class="message_delete">

</div>

</div>


<div class="message_list">
#{paginate.list items:paginator, as:'msg'}
<div class="message_list_row">

<div class="message_list_sender">
<a href="/profile/${msg?.receiver?.id}" style="color: black; font-family: none;">${msg?.receiver?.name}</a>
</div>

<div class="message_list_subject">
<a href="/outmessagedetails/${msg.id}" style="color: black; font-family: none;">${msg?.subject}</a>
</div>

<div class="message_list_date">
${msg?.date?.format('dd/MM/yyyy HH:mm')}
</div>

<div class="message_list_delete">
<a href="/deleteoutmessage/${msg.id}" style="color: black; font-family: none;">Sil</a>
</div>

</div>
#{/paginate.list} 
#{paginate.controls items:paginator /} 
</div>